package com.yuan.test.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yuan.model.SysRole;
import com.yuan.test.mapper.SysRoleMapper;
import com.yuan.test.service.SysRoleService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Transactional
@Service
public class SysRoleServiceImpl extends ServiceImpl<SysRoleMapper,SysRole> implements SysRoleService {
    @Override
    public IPage<SysRole> selectPage(Page<SysRole> rolePageParams, SysRole sysRole) {
        IPage<SysRole> pageModel = baseMapper.selectPage(rolePageParams, sysRole);
        return pageModel;
    }
}
